from django.db import models


# Create your models here.
class StockInfo(models.Model):
    code = models.CharField( max_length=20, verbose_name='股票代码' )
    short = models.CharField( max_length=20, verbose_name='股票名' )
    chg = models.CharField( max_length=20, verbose_name='跌涨幅' )
    turnoer = models.CharField( max_length=20, verbose_name='换手率' )
    price = models.DecimalField( max_digits=10, decimal_places=2, verbose_name='最新价' )
    highs = models.DecimalField( max_digits=10, decimal_places=2, verbose_name='前期高点' )
    time = models.DateField( verbose_name="上市日期" ,)

    class Meta:
        """模型类的元类：用于修改、配置模型类对应的数据表"""
        db_table = 'tb_info'  # 自定义数据库表名


class FocusInfo(models.Model):
    code = models.CharField( max_length=20, verbose_name='股票代码' )
    note_info = models.CharField( max_length=20, verbose_name='备注信息' )
    class Meta:
        """模型类的元类：用于修改、配置模型类对应的数据表"""
        db_table = 'tb_focus'  # 自定义数据库表名


